<template>
<div>

  <Alert show-icon v-for="itme in data" :key="itme.id">
    <p>公告</p>
    <template slot="desc">{{itme.content}}</template>
  </Alert>
</div>
</template>

<script>
export default {
  name: "affiche",
  data(){
    return{
      data:[],
    }
  },
  methods: {
    getAffiche() {
      this.http.get("/getNotice").then(res=>{
        if (res.data){
          console.log(res.data)
          this.data=res.data
        }
      })
    }
  },
  created() {
    this.getAffiche();
  }
}
</script>

<style scoped>

</style>
